package reflect;
@AutoRunClass
public class Person {
    private String name;
    private int age;
    public Person(){}
    public Person(String name){
        this.name = name;
    }
    public Person(String name,int age){
        this.name = name;
        this.age = age;
    }
    @AutoRunMethod(3)
    void sayHi(){
        System.out.println(name+":hello!");
    }
    @AutoRunMethod
    public String toString(){
        System.out.println("11111");
        return "Person{"+"name="+name+",age="+age+"}";
    }
    public void sayHello(){
        System.out.println(name+"：hello");
    }
    @AutoRunMethod
    public void doSome(){
        System.out.println(name+"：做某事");
    }
    @AutoRunMethod
    public void sleep(){
        System.out.println(name+":在睡觉");
    }
    @AutoRunMethod
    public void watchTV(){
        System.out.println(name+ ":看电视");
    }
    public void study(){
        System.out.println(name+ ":在学习");
    }
    public void playGame(){
        System.out.println(name+":在打游戏");
    }
    public void sing(){
        System.out.println(name+":在唱歌");
    }
    public void eat(){
        System.out.println(name+":在干饭");
    }
    public void say(String info){
        System.out.println(name+":"+info);
    }
    public void say(String info,int count) {
        for (int i = 0; i < count; i++) {
            System.out.println(name + ":" + info);
        }
    }
    private void hehe(){
        System.out.println("我是Person的私有方法hehe()!");
    }
}
